import request from '../request'
import requestParam from '../requestParam'
import requestUrl from '../requestUrl'

// 获取待办列表
export function getTodoList (params) {
    return request({
        url: requestUrl('/todo/list'),
        method: 'get',
        params: requestParam(params, 'get')
    })
}

// 获取新闻列表
export function getNewsList (params) {
    return request({
        url: requestUrl('/news/list'),
        method: 'get',
        params: requestParam(params, 'get')
    })
}

// 获取日程列表
export function getScheduleList (params) {
    return request({
        url: requestUrl('/schedu/list'),
        method: 'get',
        params: requestParam(params, 'get')
    })
}
